{% extends 'wancake/base_nav_frame.html' %}
{% load staticfiles %}
{% block content %}
  <div id="wb-weixin-index">
    <p>微信统计</p>
    <div class="row panel panel-default">
      <div class="panel-heading">
        <h4>微信统计</h4>
      </div>
      <table class="table table-striped table-hover" id="wb-weixin-statis-table">
      </table>
      <div class="panel-footer"></div>
    </div>
  </div>
{% endblock %}
{% block jsscript %}
  <script type="text/javascript">
    $(document).ready(function(e) {
      $("#wb-weixin-statis-table").table({
        columnKeys : ["area", "userPicCount", "userCount", "useSpace"]
        , columnNames : ["驻地/渠道", "照片数量", "用户数量", "使用空间"]
      }).loadFromUrl({url: "./statis"})
          .onLoad(function(table, data) {
            var listData = $.wUtils.getListData(data);
            if (listData) {
              this.load(listData);
            }
          });
    });
  </script>
{% endblock %}